package com.doupi.partner.service;

import com.doupi.partner.model.UserRelation;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface UserRelationService {
	int deleteByPrimaryKey(Long id);

	int insert(UserRelation record);

	UserRelation selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(UserRelation record);

	int countUserRelation(UserRelation userRelation);

	List<UserRelation> queryUserRelations(UserRelation userRelation, RowBounds rowBounds);

	List<UserRelation> selectUserRelationForUpdate(UserRelation userRelation);

	UserRelation selectUserRelationForUpdateByPrimaryKey(Long id);

	Pagination<UserRelation, UserRelation> queryUserRelations(Pagination<UserRelation, UserRelation> pagination);

	int saveUserRelation(UserRelation record);

	Pagination<UserRelation, UserRelation> queryUserRelationsWithAnnotation(Pagination<UserRelation, UserRelation> pagination);
}
